package com.dchh.android.suverynew.http;

import java.io.IOException;

/**
 * Created by 秋云 on 2014/10/24.
 */
public class ResponseResultException extends IOException {
    private ResponseStateEnum responseMode = ResponseStateEnum.UnkownError;

    private Object returnData;

    public ResponseResultException(String detailMessage, Object data) {
        super(detailMessage);
        this.returnData = data;
    }

    public ResponseResultException(ResponseStateEnum responseMode, String detailMessage, Object data) {
        super(detailMessage);
        this.responseMode = responseMode;
        this.returnData = data;
    }

    public ResponseStateEnum getResponseMode() {
        return responseMode;
    }

    public Object getReturnData() {
        return returnData;
    }
}
